#ifndef EDITPATHDLG_H
#define EDITPATHDLG_H

#include "scrollingdialog.h"
#include <wx/intl.h>

class EditPathDlg : public wxScrollingDialog {
  public:
    EditPathDlg( wxWindow* parent, const wxString& path, const wxString& basepath, const wxString& title = _T( "编辑路径" ), const wxString& message = _T( "" ),
                 const bool wantDir = true, const bool allowMultiSel = false, const wxString& filter = _T( "All files(*)|*" ) );
    virtual ~EditPathDlg();
    EditPathDlg& operator=( const EditPathDlg& ) { return *this; }
    const wxString& GetPath() { return m_Path; }
    void EndModal( int retCode );
  protected:
    void OnUpdateUI( wxUpdateUIEvent& event );
    void OnBrowse( wxCommandEvent& event );
    void OnOther( wxCommandEvent& event );
    wxString m_Path;
    wxString m_Message;
    wxString m_Basepath;
    wxString m_Filter;
    bool m_WantDir;
    bool m_AllowMultiSel;
    bool m_AskMakeRelative;
    bool m_ShowCreateDirButton;
  private:
    DECLARE_EVENT_TABLE();
};

#endif
